#!/usr/bin/env ruby
RAILS_ENV = 'development'
require File.dirname(__FILE__) + "/../../config/environment"

require 'app/models/sitting'
require 'app/models/question'
require 'app/models/vote'
require 'app/models/speech'
require 'app/models/political_group_vote'
require 'lrs/balsavimas/lrs_extractor'

Session.delete_all
Sitting.delete_all
Question.delete_all
Vote.delete_all
Speech.delete_all
Attendance.delete_all
PoliticalGroupVote.delete_all

sp = LrsExtractor.new 'http://www3.lrs.lt/pls/inter/w5_sale.ses_pos?p_ses_id=78'
sp.sittings

#sp = LrsExtractor.new 'http://www3.lrs.lt/pls/inter/w5_sale.ses_pos?p_ses_id=77'
#sp.sittings

#TODO butinai skirti balsavimus netik pagal laiko irasa bet ir pagal id
#TODO isaugoti klausimo id seime (sid)
